package com.agileboot.domain.app.product.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 贷款产品表
 *
 * @TableName app_loan_product
 */
@TableName(value = "app_loan_product")
@Data
public class AppLoanProductEntity extends Model<AppLoanProductEntity> implements Serializable {
    /**
     * 产品ID
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    /**
     * 产品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 最小贷款金额
     */
    @TableField(value = "min_loan_amount")
    private BigDecimal minLoanAmount;

    /**
     * 最大贷款金额
     */
    @TableField(value = "max_loan_amount")
    private BigDecimal maxLoanAmount;

    /**
     * 贷款利率
     */
    @TableField(value = "interest_rate")
    private BigDecimal interestRate;

    /**
     * 贷款期限（月）
     */
    @TableField(value = "loan_term")
    private Integer loanTerm;

    /**
     * 申请条件
     */
    @TableField(value = "requirements")
    private String requirements;

    /**
     * 产品描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 产品状态（0：下架，1：上架）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 产品类型
     */
    @TableField(value = "product_type")
    private String productType;

    /**
     * 贷款产品有效期（月）
     */
    @TableField(value = "validity_period")
    private Integer validityPeriod;

    /**
     * 贷款产品利率浮动范围
     */
    @TableField(value = "interest_rate_float")
    private BigDecimal interestRateFloat;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}